feat: set custom repository and use selectors on argocd applications #2286
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📌 Summary
This PR adds two features to the
otomi apply
command:APPS_REPO_URL
andAPPS_REVISION
, which allow configuring therepoURL
andtargetRevision
of ArgoCD application manifests when usingotomi apply-as-apps
orotomi apply --tekton
. This way, feature branches can be pushed to other locations than the public GitHub repo for experimental purposes.otomi apply --tekton
supports selectors, e.g. by file or name, for selectively configuring the ArgoCD applications.These two come in useful when testing a new version of an app, without pushing all incremental changes to GitHub. Also, using the selectors, it does not keep re-enabling
apl-operator
, reverting any potential changes sent from a local Otomi CLI. Application upgrades can be tested on top of different releases, e.g.main
and the previous release, without creating a separate feature branch for each combination.Example, which only updates a single app with a new chart (provided that the Core repo was mirrored to the cluster):
🔍 Reviewer Notes
These changes are for development use. Without setting any environment variables or selectors, they should not affect the behavior of the apl-operator.
🧹 Checklist